package com.example.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author 紫煦桉
 */
public class BooksFix extends AbstractToString {
    private Integer fixNo;
    private BooksMessage booksMessage;
    private String fixRemark;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date fixDate;

    public BooksFix() {
    }

    public BooksFix(Integer fixNo) {
        this.fixNo = fixNo;
    }

    public BooksFix(Integer fixNo, String fixRemark, Date fixDate) {
        this.fixNo = fixNo;
        this.fixRemark = fixRemark;
        this.fixDate = fixDate;
    }

    public BooksFix(Integer fixNo, BooksMessage booksMessage, String fixRemark, Date fixDate) {
        this.fixNo = fixNo;
        this.booksMessage = booksMessage;
        this.fixRemark = fixRemark;
        this.fixDate = fixDate;
    }

    public Integer getFixNo() {
        return fixNo;
    }

    public void setFixNo(Integer fixNo) {
        this.fixNo = fixNo;
    }

    public BooksMessage getBooksMessage() {
        return booksMessage;
    }

    public void setBooksMessage(BooksMessage booksMessage) {
        this.booksMessage = booksMessage;
    }

    public String getFixRemark() {
        return fixRemark;
    }

    public void setFixRemark(String fixRemark) {
        this.fixRemark = fixRemark;
    }

    public Date getFixDate() {
        return fixDate;
    }

    public void setFixDate(Date fixDate) {
        this.fixDate = fixDate;
    }
}
